package ${package.Entity};


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * @ClassName ${table.serviceName}
 * @Description
 * @Author ${author}
 * @Date ${date}
 * @Version 1.0
 */
@Data
public class ${entity} implements Serializable {

    private static final long serialVersionUID = 1L;
<#list table.fields as field>
    <#if field.keyFlag>
        <#assign keyPropertyName="${field.propertyName}"/>
    </#if>

    <#if field.comment!?length gt 0>
    /**
     * ${field.comment}
     */
    </#if>
    <#if field.keyFlag>
        <#-- 主键 -->
        <#if field.keyIdentityFlag>
    @TableId(value = "${field.name}", type = IdType.AUTO)
        <#elseif idType??>
    @TableId(value = "${field.name}", type = IdType.${idType})
        </#if>
    <#elseif field.fill??>
<#-- -----   存在字段填充设置   ----->
        <#if field.convert>
    @TableField(value = "${field.name}", fill = FieldFill.${field.fill})
        <#else>
    @TableField(fill = FieldFill.${field.fill})
        </#if>
    </#if>
    private <#if $!field.propertyType=='Date'>LocalDateTime<#elseif field.propertyType??>${field.propertyType}</#if> ${field.propertyName};
</#list>

}